package com.hzjy.api.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzjy.common.annotation.Excel;

import java.util.Date;

/**
 * 收藏对象 hzjy_collection
 *
 * @author hzjy
 * @date 2020-08-25
 */
public class HzjyCollection {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    private String productId;

    /**
     * 收藏时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectTime;

    /**
     * 收藏人id
     */
    @Excel(name = "收藏人id")
    private String owner;

    private HzjyProduct hzjyProduct;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductId() {
        return productId;
    }

    public void setCollectTime(Date collectTime) {
        this.collectTime = collectTime;
    }

    public Date getCollectTime() {
        return collectTime;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getOwner() {
        return owner;
    }

    public HzjyProduct getHzjyProduct() {
        return hzjyProduct;
    }

    public void setHzjyProduct(HzjyProduct hzjyProduct) {
        this.hzjyProduct = hzjyProduct;
    }
}
